# config/platform_rules.py
PLATFORM_RULES = {
    "weibo": {
        "patterns": [
            (r'^https?://weibo\.(com|cn)/\d+/.+', '普通链接'),
            (r'/status/(\d+)', '单条微博'),
            (r'/n/(\w+)', '@用户页')
        ]
    },
    "zhihu": {
        "patterns": [
            (r'/question/(\d+)', '问题页'),
            (r'/answer/(\d+)', '回答页'),
            (r'/pin/(\d+)', '想法页'),
            (r'/roundtable/(\w+)', '圆桌讨论')
        ],
        "param_rules": {
            "utm_psn": "移动端跳转"
        }
    },
    "douyin": {
        "hosts": ["www.douyin.com", "iesdouyin.com"],
        "path_rules": [
            (r'/note/', '图文笔记'),
            (r'/video/', '短视频')
        ]
    }
}